package cn.felord.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author system
 * @since 2019-04-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysDept extends Model<SysDept> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "dept_id", type = IdType.ID_WORKER_STR)
    private String deptId;

    /**
     * 部门名称
     */
    private String deptName;

    /**
     * 描述
     */
    private String deptDesc;


    @Override
    protected Serializable pkVal() {
        return this.deptId;
    }

}
